package com.zhou.bjgl.bjgl.util;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @ClassName: MyTreadPool
 * @Description:
 * @Author: zhou
 * @Date: 2022/2/20 15:41
 */
public class MyTreadPool {

    public static ThreadPoolExecutor timingThreadPool() {
     return  new ThreadPoolExecutor(1, 5, 2, TimeUnit.SECONDS, new ArrayBlockingQueue<>(3));
    }

}
